import { defineStore } from 'pinia';
import { ref } from 'vue';

export const useListStore = defineStore('list', () => {
  const listData = ref({});//存储编辑数据
  const editIdLong = ref(-1) //存储判断新增和编辑的标识

  const fetchList = async(data)=>{  
         listData.value = data
         editIdLong.value = data.noticeId
}
  return { listData, fetchList,editIdLong };
});